<%@ page language="java" contentType="text/html; charset=GBK" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <jsp:include page="../basePath.jsp"></jsp:include>
    <title>报送配置</title>
    <script language="javascript" src="page/maintain/submit_conf.js" charset="utf-8"></script>
  </head>
  
  <body class="scrolling">
	<div class="div">
	  <table cellspacing="0" cellpadding="0" width="100%">
		<tr><td>
		  <div class="tab-nav">
			<ul>
				<li class="current">
					<a href="javascript:void(0)"><span>系统参数配置</span></a>
				</li>																				
				<li>
					<a href="m/submit_conf/init_check"><span>数据检查配置</span></a>
				</li>
				<li>
					<a href="m/submit_conf/init_cale"><span>报送日历维护</span></a>
				</li>
			</ul>
		  </div>
		</td></tr>
	  </table>
	  
	  <table width="100%"   border="0" align="center" cellpadding="0" cellspacing="0" >
		<tr>
	      <td colspan="2">
	     	<table width="100%" border="0" align="center" cellpadding="0" cellspacing="3">
	      	  <tr><td height="30"  align="right" class="point_bg">
				<table width="100%" height="30" border="0" cellpadding="0" cellspacing="3">
		    	  <tr><td align="right">
                  	<input type="button" value="修 改" class="button" id="btnEdit" >
                  	<input type="button" value="保 存" class="button" id="btnSave" disabled>
                  	<input type="button" value="取 消" class="button" id="btnCancle" disabled >
            	  </td></tr>
			  	</table>
			  </td></tr>
	    	</table>
	      </td>
		</tr>
		<tr>
		  <td width="100%" align="center" valign="top" >
	    	<table class="form-table" width="100%" border="0" cellspacing="2" cellpadding="0" align="center">
	          <colgroup>
	         	<col class="label-column" width="20%">
	          	<col class="field-column" width="80%">
	          </colgroup>
	<c:forEach var="conf" items="${submitConfs}" >
	     	  <tr>
	        	<td align="right" class="tree_table_font" >
	        	    <c:if test="${expA13Only=='1' && conf.code!='FILE_ENCRYPT' && conf.code!='ENCRYPT_PIN' && conf.code!='ENCRYPT_KEY_CER' && conf.code!='PROP_RDY_FILENAME' && conf.code!='EXP_FILE_TYPE'}">
	        	         ${conf.name }：&nbsp;
	        	    </c:if>
	        	    <c:if test="${expA13Only=='0'}">
	        	         ${conf.name }：&nbsp;
	        	    </c:if>
	        	</td>
	         	<td class="tree_table_font">
		<c:if test="${conf.code=='INTERFACE_VER' }">
	         	  <input id="INTERFACE_VER" type="text" readonly name="${conf.id }" value="${conf.value }" maxlength="3" class="text" style="width:40px"> <font color="#A0A0A0">【报送文件使用的接口规范版本信息】</font>
		</c:if>
		<c:if test="${conf.code=='SOURCE_FILE_PATH' }">
	         	  <input id="SOURCE_FILE_PATH" type="text" readonly name="${conf.id }" value="${conf.value }" maxlength="100" class="text" style="width:350px"> <font color="#A0A0A0">【TASKSERVER所在服务器的目录】</font>
		</c:if>	
		<c:if test="${conf.code=='FILE_SAVE_PATH' }">
	         	  <input id="FILE_SAVE_PATH" type="text" readonly name="${conf.id }" value="${conf.value }" maxlength="100" class="text" style="width:350px"> <font color="#A0A0A0">【WEB所在服务器的目录或FTP地址】</font>
		</c:if>	
		<c:if test="${conf.code=='FILE_RETAIN_DAYS' }">
				  <select id="FILE_RETAIN_DAYS" name="${conf.id }" class="select-one select-width" disabled>
				  	<option value="-1">永久保存</option>
				  	<option value="1">一天</option>
				  	<option value="3">三天</option>
				  	<option value="5">五天</option>
				  	<option value="7">七天</option>
				  	<option value="10">十天</option>
				  	<option value="15">十五天</option>
				  	<option value="30">三十天</option>
				  </select>
	         	  <input id="hideRetainDays" type="hidden" value="${conf.value }" ><font color="#A0A0A0">【源文件及备份文件保存时间，备份目录：${bakDir }】</font>
		</c:if>	
		<c:if test="${conf.code=='ETL_LOG_LEVEL' }">
				  <select id="ETL_LOG_LEVEL" name="${conf.id }" class="select-one select-width" disabled>
<c:forEach var="level" items="${prepLevelOptions}" >				  
				  	<option value="${level.key }">${level.text }</option>
</c:forEach>
				  </select>
	         	  <input id="hideEtlLogLevel" type="hidden" value="${conf.value }" ><font color="#A0A0A0">【配置日志记录的级别】</font>
		</c:if>	
		<c:if test="${conf.code=='LOG_RETAIN_DAYS' }">
				  <select id="LOG_RETAIN_DAYS" name="${conf.id }" class="select-one select-width" disabled>
				  	<option value="-1">永久保存</option>
				  	<option value="1">一个月</option>
				  	<option value="3">三个月</option>
				  	<option value="6">六个月</option>
				  	<option value="12">一年</option>
				  	<option value="24">两年</option>
				  	<option value="36">三年</option>
				  </select>
	         	  <input id="hideLogRetainDays" type="hidden" value="${conf.value }" ><font color="#A0A0A0">【日志在数据库保留时间】</font>
		</c:if>
		<c:if test="${conf.code=='DATA_RETAIN_DAYS' }">
				  <select id="DATA_RETAIN_DAYS" name="${conf.id }" class="select-one select-width" disabled>
				  	<option value="-1">永久保存</option>
				  	<option value="1">一个月</option>
				  	<option value="3">三个月</option>
				  	<option value="6">六个月</option>
				  	<option value="12">一年</option>
				  	<option value="24">两年</option>
				  	<option value="36">三年</option>
				  </select>
	         	  <input id="hideDataRetainDays" type="hidden" value="${conf.value }" ><font color="#A0A0A0">【备份库数据保留时间】</font>
		</c:if>
		<c:if test="${conf.code=='RUN_SWITCH' }">
				  <input name="RUN_SWITCH" type="radio" disabled value="0" ${conf.value == '0' ? 'checked' : '' } class="runSwitch">禁用 
	        	  <input name="RUN_SWITCH" type="radio" disabled value="1" ${conf.value == '1' ? 'checked' : '' } class="runSwitch">启用 <font color="#A0A0A0">【禁用或启用自动运行功能】</font>
		</c:if>
		<c:if test="${conf.code=='RUN_TIME' }">
				  <select id="RUN_TIME" name="${conf.id }" class="select-one select-width" disabled>
				  	<option value="0000">00:00</option>
				  	<option value="0100">01:00</option>
				  	<option value="0200">02:00</option>
				  	<option value="0300">03:00</option>
				  	<option value="0400">04:00</option>
				  	<option value="0500">05:00</option>
				  	<option value="0600">06:00</option>
				  	<option value="0700">07:00</option>
				  	<option value="0800">08:00</option>
				  	<option value="0900">09:00</option>
				  	<option value="1000">10:00</option>
				  	<option value="1100">11:00</option>
				  	<option value="1200">12:00</option>
				  	<option value="1300">13:00</option>
				  	<option value="1400">14:00</option>
				  	<option value="1500">15:00</option>
				  	<option value="1600">16:00</option>
				  	<option value="1700">17:00</option>
				  	<option value="1800">18:00</option>
				  	<option value="1900">19:00</option>
				  	<option value="2000">20:00</option>
				  	<option value="2100">21:00</option>
				  	<option value="2200">22:00</option>
				  	<option value="2300">23:00</option>
				  </select>
	         	  <input id="hideRunTime" type="hidden" value="${conf.value }" ><font color="#A0A0A0">【任务每天自动开始执行的时间】</font>
		</c:if>	
		<c:if test="${conf.code=='RUN_STRATEGY' }">
	         	  <input name="RUN_STRATEGY" type="radio" disabled id="${conf.id }" value="0" ${conf.value == '0' ? 'checked' : '' } class="runStrategy">自动采集数据 <font color="#A0A0A0">【任务只自动执行数据采集，其余步骤需要手动操作】</font>
	         	  <br><input name="RUN_STRATEGY" type="radio" disabled value="1" ${conf.value == '1' ? 'checked' : '' } class="runStrategy">自动生成数据 <font color="#A0A0A0">【任务自动执行到数据生成，生成文件需要手动操作】</font>
	         	  <br><input name="RUN_STRATEGY" type="radio" disabled value="2" ${conf.value == '2' ? 'checked' : '' } class="runStrategy">自动生成文件 <font color="#A0A0A0">【任务自动执行到文件生成，整个过程为全自动】</font>
		</c:if>
		<c:if test="${conf.code=='ACCRUAL_MAN_TYPE' }">
				  <input name="ACCRUAL_MAN_TYPE" type="radio" disabled value="0" ${conf.value == '0' ? 'checked' : '' } class="accrualManType">汇总维护 
	        	  <input name="ACCRUAL_MAN_TYPE" type="radio" disabled value="1" ${conf.value == '1' ? 'checked' : '' } class="accrualManType">明细维护 <font color="#A0A0A0">【明细维护方式新增时不检查主键重复】</font>
		</c:if>
		<c:if test="${expA13Only=='0'}">
			<c:if test="${conf.code=='EXP_FILE_TYPE' }">
					  <input name="EXP_FILE_TYPE" type="radio" disabled value="0" ${conf.value == '0' ? 'checked' : '' } class="expFileType">数据库导出 
		        	  <input name="EXP_FILE_TYPE" type="radio" disabled value="1" ${conf.value == '1' ? 'checked' : '' } class="expFileType">源目录拷贝 <font color="#A0A0A0">【报送文件生成时默认操作方式】</font>
			</c:if>
			<c:if test="${conf.code=='FILE_ENCRYPT' }">
					  <input name="FILE_ENCRYPT" type="radio" disabled value="0" ${conf.value == '0' ? 'checked' : '' } class="isEncrypt">否 
		        	  <input name="FILE_ENCRYPT" type="radio" disabled value="1" ${conf.value == '1' ? 'checked' : '' } class="isEncrypt">是 <font color="#A0A0A0">【控制自动加密功能】</font>
			</c:if>
			<c:if test="${conf.code == 'ENCRYPT_PIN'}">
			         <input id="ENCRYPT_PIN" type="password" readonly name="${conf.id }" value="${conf.value }" maxlength="100" class="text" style="width:150px"> <font color="#A0A0A0">【加密使用的PIN码】</font>
			</c:if>	
			<c:if test="${conf.code == 'ENCRYPT_KEY_CER'}">
			         <input id="ENCRYPT_KEY_CER" type="text" readonly name="${conf.id }" value="${conf.value }" maxlength="100" class="text" style="width:350px"> <font color="#A0A0A0">【加密使用的安全证书全路径】</font>
			</c:if>	
			<c:if test="${conf.code == 'PROP_RDY_FILENAME'}">
		        	 <input id="PROP_RDY_FILENAME_R" type="checkbox" disabled value="1" ${not empty conf.value ? 'checked' : '' }>启用&nbsp;&nbsp;
			        标志文件名：<input id="PROP_RDY_FILENAME" type="text" readonly name="${conf.id }" value="${conf.value }" maxlength="100" class="text" style="width:150px"> <font color="#A0A0A0">【PROP自动报送的总标志文件名】</font>
			</c:if>	
			<c:if test="${conf.code == 'PFX_PATH'}">
		        	 <input id="PFX_PATH" type="text" readonly name="${conf.id }" value="${conf.value }" maxlength="100" class="text" style="width:350px"> <font color="#A0A0A0">【用于发送文件的pfx路径】</font>
			</c:if>
			</c:if>
	        	</td>
	       	  </tr>
	</c:forEach>
	     	</table>
		  </td>
		</tr>
	  </table>
	  <br/>
	</div>
  </body>
</html>
